package com.chen.springboot.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * mongodb存储球员信息
 *
 * @author chenchao
 * @date 2022/7/2 22:30
 */

@Document(collection = "players")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Players {


    @Id
    private Integer id;


    @ApiModelProperty("球队名称")
    private String displayName;


    @ApiModelProperty("国籍")
    private String country;


    @ApiModelProperty("身高")
    private String height;


    @ApiModelProperty("主打位置")
    private String position;


    @ApiModelProperty("体重")
    private String weight;


    @ApiModelProperty("球员头像")
    private String playerImg;


    @ApiModelProperty("所在球队")
    private String displayAbbr;
}
